package com.example.service.impl;

import com.example.dao.ChangePasswordDao;
import com.example.domain.User;
import com.example.service.ChangePasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChangePasswordServiceImpl implements ChangePasswordService {

    @Autowired
    ChangePasswordDao changePasswordDao;
    @Override
    public boolean changePassword(User user) {
        changePasswordDao.updatePassword(user);
        return true;
    }
}
